<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>当日学生面试登记</title>
<link rel="stylesheet" href="<%=request.getContextPath() %>/css/index1.css" type="text/css"></link>
</head>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.8.2.min.js" ></script>

<script type="text/javascript">
	function add(){
		var msTime1 = $("[name='msTime1']").val();
		var msTime2 = $("[name='msTime2']").val();
		var msTime = msTime1+","+msTime2;
		$.post(
			"addInterview?msTime="+msTime,
			$("form").serialize(),
			function(obj){
				if(obj==0){
					alert("成功");
					location.href="<%=request.getContextPath()%>/list";
				}else if(obj==1){
					alert("时间格式不正确");
				}else if(obj==2){
					alert("反正错了");
				}
			},
			"text"
		);
	}
</script>

<body>
	<div>
		<!-- <div style="float: left;"> -->
		<form>
			<table>
				<tr>
					<th colspan="11">
						${date }
						<input type="hidden" name="time" value="${date }">
						<input type="hidden" name="sid" value="${sid }">
					</th>
				</tr>
				<tr>
					<th>学生姓名</th>
					<td><input type="text" name="name" value="${name }"></td>
				</tr>
				<tr>
					<th>学生班级</th>
					<td><input type="text" name="cid" value="${classes }"></td>
				</tr>
				<tr>
					<th>面试公司</th>
					<td><input type="text" name="company"></td>
				</tr>
				<tr>
					<th>面试时间</th>
					<td><input type="text" name="msTime1">--<input type="text" name="msTime2">
					</td>
				</tr>
				<tr>
					<th>有无面试</th>
					<td>
						<input type="radio" name="msflag" value="1">有<input type="radio" name="msflag" value="0">无
					</td>
				</tr>
				<tr>
					<th>有无录音</th>
					<td>
						<input type="radio" name="soundflag" value="1">有<input type="radio" name="soundflag" value="0">无
					</td>
				<tr>
					<th>面前指导</th>
					<td>
						<input type="radio" name="firstguideflag" value="1">有<input type="radio" name="firstguideflag" value="0">无
					</td>
				</tr>
				<tr>
					<th>面后指导</th>
					<td>
						<input type="radio" name="laterguideflag" value="1">有<input type="radio" name="laterguideflag" value="0">无
					</td>
				</tr>
				<tr>
					<th>有无诊断</th>
					<td>
						<input type="radio" name="diagnoseflag" value="1">有<input type="radio" name="diagnoseflag" value="0">无
					</td>
				</tr>
				<tr>
					<th>能否联系</th>
					<td>
						<input type="radio" name="relationflag" value="1">有<input type="radio" name="relationflag" value="0">无
					</td>
				</tr>
				<tr>
					<td colspan="11">
						<input type="button" value="添加" onclick="add()">
						<input type="reset" value="重置">
					</td>
				</tr>
			</table>
		</form>
		<!-- </div> -->
	</div>

</body>
</html>